home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Workbench / BackClock / sources / conf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-09  |  722 b   |  27 lines

  1. /* entete: conf.h version 1.1 31-05-98
  2.  */
  3.  
  4. #define CF_NAMEENV    "env:backclock.prefs"
  5. #define CF_NAMEENVARC "envarc:backclock.prefs"
  6. #define ERR_ENV       "File error %ld on ENV:backclock.prefs"
  7. #define ERR_ENVARC    "File error %ld on ENVARC:backclock.prefs"
  8.  
  9. struct ConfFile {
  10.   UBYTE id[4] ;         // BACK
  11.   UWORD posX,
  12.         posY,
  13.         lenX,
  14.         lenY ;
  15.   struct RGB cmap[NUM_COLORS] ;
  16.   UWORD fill ;         // fill or transparent
  17.   UWORD filln ;        // fill needles
  18.   UWORD drawsec ;      // draw the seconds ?
  19. } ;
  20. // prepare the file to be saved
  21. BOOL SaveConf(idWin * prj, UBYTE *) ;
  22. BOOL LoadConf(idWin * prj) ;
  23.  
  24. // save prefs file to env (and to envarc)
  25. void SaveEnv(idWin * prj, BOOL envarc) ;
  26.  
  27.